package bupt.party.online.service;

import java.util.List;
import java.util.Map;

import bupt.party.online.model.BranchNews;

public interface IBranchNewsService {
	public BranchNews findBranchNewsById(int id);
	public List<BranchNews> findAllBranchNews();
	
	public int getResultCountByTag(int tag);
	
	public List<BranchNews> getNewsByCategory(int cateTag,int pageNow,int pageSize);
	
	public int getResultCountByConditions(Map<String,Object> conditions);
	
	public List<BranchNews> getNewsByConditions(Map<String,Object> conditions,int pageNow,int pageSize);
	
	public boolean saveOrUpdate(BranchNews bean);
	
	public BranchNews getNewsById(int id);
	
	public boolean deleteNewsById(int id);
	
}
